package de.justphil.tcg.tcgserver.commons.domain.containers;

import java.io.Serializable;

public class ObjectHeader implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6246166212035643963L;
	
	public static final String NEW_GAME		= NewGame.class.getSimpleName();
	public static final String GAME_EXPIRED	= GameExpired.class.getSimpleName();
	public static final String GAME_OVER 	= GameOver.class.getSimpleName();
	
	/* ######################################################################## */
	/* ######################################################################## */
	/* ######################################################################## */
	
	private final String className;
	
	private final long requestId;
	
	private final int type;
	
	public ObjectHeader(String className, long requestId, int type) {
		this.className = className;
		this.requestId = requestId;
		this.type = type;
	}

	public String getClassName() {
		return className;
	}

	public long getRequestId() {
		return requestId;
	}

	public int getType() {
		return type;
	}
	
	
	public class Type {
		public static final int REQUEST 	= 1;
		public static final int RESPONSE	= REQUEST + 1;
	}
}
